 import Vue from 'vue'
 import './plugins/axios'
 import App from './App.vue'
 import router from './router'
 import LoadAnimate from '@/components/LoadAnimate'
 import '@/assets/font_ecnpjqrk42h/iconfont.css'
 Vue.config.productionTip = false
 Vue.filter('formatDate', (value, formatStr = 'YY年MM月dd日  hh时mm分ss秒') => {
   let d = new Date(value);
   let obj = {
     'Y+': d.getFullYear(),
     'M+': d.getMonth() + 1,
     'd+': d.getDate(),
     'h+': d.getHours(),
     'm+': d.getMinutes(),
     's+': d.getSeconds(),
   }
   for (let key in obj) {
     let reg = new RegExp(key, 'g')
     let val = obj[key];
     val = val < 10 ? "0" + val : val;
     formatStr = formatStr.replace(reg, val);
   }
   return formatStr;
 })

 Vue.component("LoadAnimate",LoadAnimate)

 new Vue({
   router,
   render: h => h(App)
 }).$mount('#app')